package com.zfskkk.democonsumerfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhangfoshou
 * @date 2018/9/28 18:05
 */
@FeignClient(value = "service-provider", fallback = ErrorHandler.class)
public interface IHello {

    @RequestMapping("/actuator/info")
    String sayHi(@RequestParam(name = "name", defaultValue = "rrrrrrrrrr") String name);
}
